﻿using System;
using System.ComponentModel;

namespace ScreensInterfaces
{
    public class ScreenImage : INotifyPropertyChanged
    {
        private string path = "";
        private ScreenImagePosition position = ScreenImagePosition.NotDefined;

        public string Path 
        {
            get
            {
                return path;
            }
            set
            {
                path = value;
                OnPropertyChanged("Path");
            }
        }

        public ScreenImagePosition Position
        {
            get
            {
                return position;
            }
            set
            {
                position = value;
                OnPropertyChanged("Position");
            }
        }

        public ScreenImage()
        {
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

    public enum ScreenImagePosition
    {
        NotDefined,
        Top,
        Bottom,
        Middle,
        Left,
        Right
    }
}
